Skip to content

fix(lib/es2015): Move Promise.race(Iterable) to es2015.iterable.d.ts - #36435

Closed
ExE Boss (ExE-Boss) wants to merge 2 commits into
microsoft:masterfrom
ExE-Boss:lib/es2015/fix-promise-iterable
Closed

fix(lib/es2015): Move Promise.race(Iterable) to es2015.iterable.d.ts#36435
ExE Boss (ExE-Boss) wants to merge 2 commits into
microsoft:masterfrom
ExE-Boss:lib/es2015/fix-promise-iterable

Conversation

@ExE-Boss

@ExE-Boss ExE Boss (ExE-Boss) commented Jan 25, 2020

Copy link
Copy Markdown
Contributor

#31117 caused an issue where the Promise.race overload that takes an Iterable argument was in es2015.promise.d.ts instead of being in es2015.iterable.d.ts.


Fixes #31722
Supersedes and closes #36368

@falsandtru

Copy link
Copy Markdown
Contributor

See #36368

@falsandtru

falsandtru (falsandtru) commented Feb 1, 2020

Copy link
Copy Markdown
Contributor

Note that this PR has the following unapproved change:

-    all<TAll>(values: Iterable<TAll | PromiseLike<TAll>>): Promise<TAll[]>;
+    all<T>(values: Iterable<T>): Promise<(T extends PromiseLike<infer U> ? U : T)[]>;

#36368 is the conservative original PR.

@rbuckton

Copy link
Copy Markdown
Contributor

We are pushing awaited until after TS3.9 while we continue to assess the impact of the change. While this means we are essentially reverting #35998 with #37610, #37610 leaves in place the change that addressed this issue.

@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

For Backlog Bug PRs that fix a backlog bug

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[3.5.1] Iterable is missing in lib.es2015.promise.d.ts

4 participants